package com.ziyucoding.springboot.labs.lab10.seatdemo.tccscfeign.orderservice.feign;

import com.ziyucoding.springboot.labs.lab10.seatdemo.tccscfeign.orderservice.feign.dto.AccountReduceBalanceDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 账户服务 Feign 端
 *
 * @author ziyucoding
 * @date 2022-11-04
 **/
@FeignClient(name = "account-service")
public interface AccountServiceFeignClient {

    @PostMapping("/account/reduce-balance")
    Map<String, Object> reduceBalance(@RequestBody AccountReduceBalanceDTO accountReduceBalanceDTO);

}
